package com.ruoyi.project.cms.product.mapper;

import com.ruoyi.project.cms.product.domain.ProductStyle;

import java.util.List;

/**
 * @CreateTime 2020/5/18 14:49
 */
public interface StyleMapper {
    //查询所有
    public List<ProductStyle> selectAllName();
    //查询所有(条件)
    public List<ProductStyle> selectAll(ProductStyle style);
    //校验新增风格信息是否有重复
    public ProductStyle checkStyleNameUnique(String styleName);
    //增加一个风格
    public int insertStyle(ProductStyle style);
    //根据id查询
    public ProductStyle selectStyleById(Long styleId);
    //修改风格信息
    public int updateStyle(ProductStyle style);
    //删除风格信息
    public int deleteStyleByIds(Long[] ids);
}
